package cn.javass.dp.abstractfactory.example4;

public class MainBoardFactory {

    public static MainboradApi getMainborad(int type) {
        MainboradApi mainborad = null;
        if (type == 1) {
            mainborad = new GAMainborad(1156);
        } else if (type ==2) {
            mainborad = new MSIMainboard(939);
        }
        return mainborad;
    }
}
